<?php
require_once('db.php');

$date = date('Y-m-d H:i:s');
$query = "INSERT INTO `users` VALUES
         (null,'Ravi','test@gmail.com',
         'pass@123','$date',null,'0')";

mysql_query($query) or die(mysql_error());

$lastInsertedId = mysql_insert_id();

echo "User inserted on Id : $lastInsertedId \n\n";
